/*    */ package com.qmsk.business.member.memberIntegralRule.dao;
/*    */ 
/*    */ import com.qmsk.business.sys.basic.SupportDAO;
/*    */ import com.utils.basic.MapUtils;
/*    */ import com.utils.gson.in.GsonHeadOneRow;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import java.sql.SQLException;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class MemberIntegralRuleDAO extends SupportDAO
/*    */ {
/*    */   public GsonEbRst getGsonOfShopId(Integer shopId, Integer nPageIdx, Short nPageSize)
/*    */     throws SQLException
/*    */   {
/* 36 */     Map params = new HashMap();
/* 37 */     MapUtils.addToMap(params, "shopId", shopId);
/* 38 */     return getGsonOfParams("selectSqlOfShopId", params, nPageIdx, 
/* 39 */       nPageSize, true);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGsonOfId(Integer id) throws SQLException {
/* 43 */     Object[] params = { id };
/* 44 */     return getGsonOfParams("selectSqlOfId", params, false); }
/*    */ 
/*    */   public GsonEbRst getGsonOfName(String name) throws SQLException {
/* 47 */     Object[] params = { name };
/* 48 */     return getGsonOfParams("selectSqlOfName", params, false); }
/*    */ 
/*    */   public GsonHeadOneRow getGsonOneRowOfName(String name) throws SQLException {
/* 51 */     Object[] params = { name };
/* 52 */     return getOneRowOfParams("selectSqlOfName", params); }
/*    */ 
/*    */   public GsonEbRst getGsonOfNameAndMemberIdAndCus(String name, Long memberId, Integer type) throws SQLException {
/* 55 */     Object[] params = { name, memberId, type };
/* 56 */     return getGsonOfParams("selectSqlOfNameAndMemberIdAndCus", params, false);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGsonOfNameAndMemberIdAndCus(String name) throws SQLException {
/* 60 */     Object[] params = { name };
/* 61 */     return getGsonOfParams("selectSqlOfNameAndMemberIdAndCus", params, false); }
/*    */ 
/*    */   public GsonHeadOneRow selectgzInfo(Long shopId, Long levelID, String rulName) throws SQLException {
/* 64 */     Map params = new HashMap();
/* 65 */     params.put("shopId", shopId);
/* 66 */     params.put("levelID", levelID);
/* 67 */     params.put("rulName", rulName);
/* 68 */     return getOneRowOfParams("selectgzInfo", params);
/*    */   }
/*    */ 
/*    */   public GsonHeadOneRow getGsonOneRowOfNameAndMemberIdAndCus(String ruleName) throws SQLException
/*    */   {
/* 73 */     Object[] params = { ruleName };
/* 74 */     return getOneRowOfParams("selectSqlOfName", params);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.member.memberIntegralRule.dao.MemberIntegralRuleDAO
 * JD-Core Version:    0.5.3
 */